﻿using System.Collections;

using UnityEngine;

public class Loader : MonoBehaviour {
    //指定GameManager的Prefab
    public GameObject gameManager;

    void Awake ( ) {
        //GameManager不存在的时候、生成GameManager
        if (GameManager.instance == null) {
            Instantiate (gameManager);
        }
    }
}
